/////////////////////////////////////////////////////////////////////////
//
// Amuse Engine SDK - system/task
// Copyright( c) 2014.  All Rights Reserved
//
// File:		AESysTask.cpp
// Author:		Gianluca Belardelli
// Date:		30/06/2014
//
/////////////////////////////////////////////////////////////////////////
#include <AEEngine.h>

void AESysTask::Process( void )
{
	m_lpSystemTask->Update( m_fDeltaTime );
}

void AESysTask::SetStatus( AEThreadWorkItem::AEWorkItemStatus inStatus )
{
    AEThreadWorkItem::SetStatus( inStatus );

    if( inStatus == Completed )
    {
        if( m_lpfnJobCompletionFunction != NULL )
            m_lpfnJobCompletionFunction( m_lpCompletionUserData );
		
		m_hWorkCompleted->Set();
    }
}
